package com.lagou.session;

import com.lagou.pojo.ErrorContext;

public class ExceptionFactory {

    public static RuntimeException wrapException(String message, Exception e) {
        return new RuntimeException(ErrorContext.instance().message(message).cause(e).toString(), e);
    }
}
